﻿using System;
using System.Collections.Generic;
using NetDon.Utilities;

namespace NetDon.OA.Portal
{
    public partial class Main : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {   
            Page.MaintainScrollPositionOnPostBack = true;
        }

        protected override void OnPreRender(EventArgs e)
        {
            PageBase p = Page as PageBase;
            if (p != null)
            {
                rptCommands.DataSource = p.CommandButtons;
                rptCommands.DataBind();
            }
            base.OnPreRender(e);
        }

    }
}
